﻿using Demo.Public.Base;

namespace StoreSystem.ViewModels
{
    /// <summary>
    /// 库房温湿度信息
    /// </summary>
    public class THDataInfo : ViewModelBase
    {
        public byte SlaveID { get; set; }
        public int RoomNO { get; set; }
        public string RoomName { get; set; }
        private int _State = 0;

        /// <summary>
        ///
        /// </summary>
        public int State
        {
            get
            {
                return _State;
            }
            set
            {
                _State = value;
                RaisePropertyChanged("State");
            }
        }

        private decimal _Temperature = 0;
        private decimal _Humidity = 0;

        /// <summary>
        ///
        /// </summary>
        public decimal Humidity
        {
            get
            {
                return _Humidity;
            }
            set
            {
                _Humidity = value;
                RaisePropertyChanged("Humidity");
            }
        }

        /// <summary>
        ///
        /// </summary>
        public decimal Temperature
        {
            get
            {
                return _Temperature;
            }
            set
            {
                _Temperature = value;
                RaisePropertyChanged("Temperature");
            }
        }

        public string THData { get; set; }
    }
}